<template>
  <div class="student-list">
    <h2>学生列表1</h2>
    <ul>
      <li v-for="student in students" :key="student.id">
        {{ student.name }} - {{ student.grade }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'StudentList1',
  data() {
    return {
      students: [
        { id: 1, name: '张三', grade: '一年级' },
        { id: 2, name: '李四', grade: '二年级' },
        { id: 3, name: '王五', grade: '三年级' }
      ]
    }
  }
}
</script>

<style scoped>
.student-list {
  padding: 20px;
}
.student-list h2 {
  color: #42b983;
}
.student-list ul {
  list-style: none;
  padding: 0;
}
.student-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
</style>